﻿using UnityEngine;
using System.Collections;

public class Plat_Blue : MonoBehaviour 
{
	
	static public bool blue_coll;

	// Use this for initialization
	void Start () 
	{
		
	}
	
	// Update is called once per frame
	void Update () 
	{
		
		
	
	}
	
	
	void OnTriggerEnter (Collider other)
	{
		if(TypeBlue.blue_mesh_on)
		{
			if(GameObject.FindGameObjectWithTag ("Player"))
			{
				blue_coll = true;
				collider.enabled = true;
			}	
			else
			{
				blue_coll = false;	
				collider.enabled = false;
			}
		}	
		
	}
	
	
	void OnTriggerExit (Collider other)
	{
		/*if(GameObject.FindGameObjectWithTag ("Player"))
		{
			poteito = false;
		}*/
		
		blue_coll = false;
	}
}
